<?php

use App\Controller\IndexController;

require "public/autoload.php";
const ENV = 1;

$pay = new IndexController();
$env = ENV;

if(isset($_REQUEST['card_number'])){
    $data = $_REQUEST;
    $cardNumber = $data['card_number'];
    echo $pay->gzhPay($cardNumber, $env);
}elseif(isset($_REQUEST['openid'])){
    $data = $_REQUEST;
    $openid = $data['openid'];
    echo $pay->noRealPay($openid, $env);
}







